package com.xnxy.design.model.type;

/**
 * @author puzengcheng
 * @ClassName: OperateType
 * @Description: 查询条件过滤关键字
 * @date 2018年10月19日
 */
public enum OperateType {
    EQ("EQ", "="), LE("LE", "<="), LT("LT", "<"), GE("GE", ">="), GT("GT", ">"), LIKE("LIKE", "LIKE");

    public final String value;

    public final String operater;

    private OperateType(String value, String operater) {
        this.value = value;
        this.operater = operater;
    }

    public String getOperater() {
        return operater;
    }

    public static String getDesc(String type) {
        for (OperateType enumType : OperateType.values()) {
            if (enumType.value.equals(type) ) {
                return enumType.getOperater();
            }
        }
        return "" + type;
    }

}
